package com.mymanyan.demo.mapper;

import com.mymanyan.demo.model.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @ClassName UserMapper
 * @description: TODO
 * @author: 朱同学
 * @Date 2021/5/18 16:46
 **/
@Component
@Mapper
public interface UserMapper {

    @Select("select id,user_name userName,create_time createTime,update_time updateTime from user")
    List<User> findAll();
}
